Fixes chdir line