updating script permissions