switching out fs.rename with ncp module that recursively copies a directory