git_config_colorbool: refactor stdout_is_tty handling