Fix GitRepo#current_branch (and hence #ahead?, etc) for older gits.

Older versions of git don't have --short, which means 'symbolic-ref'
would fail and the current SHA would be returned instead of a branch
name.

This was introduced in f8c3499.
v0.17.1 - Fix GitRepo#current_branch on older gits.