Use mv module to rename files across devices

I've been getting an [EXDEV](http://stackoverflow.com/questions/21071303/node-js-exdev-rename-error) error when trying to move the tmp file to the destination folder due to /tmp being on a different device to the destination. This PR simply adds the `mv` module and drops it in place of `fs.rename`.