update script to first checkout master