Color the output only when stdout.isTTY

Resolves #237