New helper function: removeExistingFile.
Use 'removeExistingFile' in 'allPackageSourceFiles'.
Improve an error message.