fix copy not being able to overwrite generated files due to them being read only (r--r--r--) by removing them first