Fix a sys::Path API error caught by a gcc 4.2 warning.