defer Chdir