Use __git_ps1 instead of custom solution to determine the current branch

The current custom solution doesn't show when a branch is in merging state for example. Using the git tool for the prompt might be a better idea.