shell-common: match at a '/' when eliding the common branch name
shell-common: cope with newer git not returning the string "@{upstream}"
shell-common: make sure xcode is installed before asking cc it's version

This prevents a dialog box from popping up asking you to install XCode
on Mac OS X.