git: don't rely on git-symbolic-ref --short

This flag was added some time around git@1.7.10, which is newer than
what CentOS 6.5 provides.

Reported in strongloop/strongloop#173