`git branch` upstream-setting fixes

also helper script for checking installed `git` version
Yea. I also had to add this script in the first place because demeter has git 1.7. Using it as an excuse to make this repo more back-compat.