fix chdir (pass the current directory)