http://stackoverflow.com/questions/20585729/how-to-detect-if-nodes-process-stdout-is-being-piped this lets piping play nice with reactty