Change the clean up to use rimraf.sync because the async was throwing errors