update script to track new branches after changes in git 1.8