'git symbolic-ref --short HEAD' doesn't work in pre-1.8 clients.