Fix issue with temp files on windows.
Merge pull request #7 from sergue1/master

Fix issue with temp files on windows.