Check if stderr is a TTY for colors (not stdout)

Assume I were to run the following:

    phantomas http://justinetunney.com --reporter=json | pretty-json >report.json

In this case, stderr would be a terminal (since I used `|` instead of `|&`) but stdout would not. Since logging is sent to stderr, one would assume it would continue to have ANSI colors. But this is not the case, because the code incorrectly tests the stdout file descriptor, rather than stderr.

This patch should makes things better for you guys. Please confirm that your project never emits ANSI colors to stdout before merging. Thanks in advance.
``BW`` env variables is checked in a simple wraper for ``ansicolors`` library (which is used by both node.js and PhantomJS layer of phantomas). ``ansicolors`` is used to color the output for both stderr (verbose log) and stdout (results in plain mode).

For this fix to work as expected you need to check ``stdout.isTTY`` in the code that emits the plain results as well.