Seems like Dir.tmpdir isn't always writable
Seems like Dir.tmpdir isn't always writable