According to https://github.com/joyent/node/issues/2703
fs.rename does not support renaming between disks, which
is causing a problem when the /tmp directory is not on the
same disk as the cwd.
This is an ugly fix involving error catching, but I would
love some input to see how to fix this problem permanently