changes taken from http://stackoverflow.com/questions/4133904/ps1-line-with-git-current-branch-and-colors