Fixed bug where non git repos displayed "unnamed branch" in prompt.