Added additional check to delete old upgrade backups.