mingw: intercept isatty() to handle /dev/null as Git expects it