Guard against running incompatible code in msysgit bash