Implemented chdir option