Use POSIX chdir() rather than my version