Update git parsing.

* update git parsing for new git version
* minor fixes to coloring and newlines.