Fixed an issue with temp directories in Windows.