Fixes temp files working directory.