retrace: Don't output color when stdout is not a tty (issue #143).

To prevent tools that consume its output having to deal with ANSI
escape codes.