chdir resolution