update fs.rename to fs.renameSync