Fixed the script so it doesn't trample backups.