Avoid ANSI color if stdout is not a TTY

This fixes #12.