fixed possible type-error throw if rename fails on windows
fixed possible type-error throw if rename fails on windows

isaacs/node-graceful-fs,heavyk/node-graceful-fs,etiktin/node-graceful-fs,isaacs/node-graceful-fs