[fix] Display colorized messages correctly outside a tty