Fixing issue in backup scripts