update script permissions