correct chdir