Use mv module in place of fs.rename, fix #189