[libvirt] [PATCH] tests: fix TTY check in virTestUseTerminalColors()