Check isatty before setting terminal colour

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Better Unicode/UTF8 console support in logging

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>