Fix a problem caused when a nonstandard stdout is defined and not
properly implemented
Ok i am being lazy using the try catch
Merge pull request #222 from jpunwin/master

Workaround getting isatty from a poorly implemented stdout object