Fixing backup script issues