Fix EXDEV error when using renameSync to move