Fix issue with temp files on windows.