Fix for creating temp dir with older powershell versions.