Fix regression: getPath() shouldn't call getPathname()