only use colors when attached to a terminal

If STDOUT is not hooked up to a terminal, automatically disable the
colors by setting the appropriate environment variable.
Merge pull request #29 from preaction/ansi-disable

only use colors when attached to a terminal