fix for creating temp directory on windows