getPath should not care about pwd.