Fix prompt print in separated git repository

This fixes printing git branch in repository which initialized with
--separate-git-dir option.
A separated git repository has ".git" file instead of ".git/" directory.
So this applies print git branch to both of them.