fix permission check for backup file removal