Only respect CFENGINE_COLOR environment if we are on a console.

Otherwise we spam syslog and other targets with ANSI codes.

Redmine #5388