zshrc: get_git_branch: Check HEAD file directly

This fixes errors from git when in a repo without any commits.

Stolen (again) from Earnestly/dotfiles@a855e6bf

Original-work-by: Earnestly <zibeon@gmail.com>