lib/colors: care about colors only on tty()

Signed-off-by: Karel Zak <kzak@redhat.com>