fix printing to proper output

Whether to print in color is determined if the output is a tty.
test on node 0.8 and 0.10

- deprecate 0.6
1.3.1