Improve check for console color support

Allows color output on Windows consoles that support ANSI escape sequences.