Make sure to delete the file before the copy when it needs to be
overwrited