On Windows tempfile.delete does not delete the file. It needs to be closed and unlinked
Vagrant.version?