configure: prevent ANSI escape codes in stdout of Python version check