Fixed git-prompt logic