Fix prompt print in separated git repository

This fixes printing git branch in repository which initialized with
[--separate-git-dir](http://www.kernel.org/pub/software/scm/git/docs/git-init.html#_options) option.
A separated git repository has ".git" file instead of ".git/" directory.
So this applies print git branch to both of them.