Fixed #23686 -- Tweak color output of the system check framework.

**WIP** for CI, don't review yet.
Moving stdout/stderr to `__init__` is also the topic of #23663