bash has the $OSTYPE variable that you could check against and if it's msys assume it's a windows running mysysgit...