remove unused code for deprecating cwd()