Fixed an issue with the temporary directory not being accessible in windows for some users.