Fix a bug in the backup deletion script which was causing it to not delete backups correctly