Handle overwrite of files