Revert "Add support for chdir and getcwd"