Fixed for OSX.

On OSX the echo command does not recognise the \e escape. Have to use the
\033 instead.

Also fixed a bug that did not enable git PS1 extension if dircolors was not
present. A copy/paste mistake.