Fix git executable search on windows (improved).

Make git up work in a msysgit shell.

Colouring remains messed up by default as ANSI colours should be
translated to Win32 calls.