Fix `newTempDir` on Windows