Use rimraf for removing temp file