Windows tempfile fix