enable colors only if supported by output

Regression from 76effd20a3b62644cbbbcf50e906b914e4297e6f.