Fix the chdir fix.