Fixed cwd()