Add isAtty() on darwin (OS X)
Merge pull request #26 from ichizok/darwin_isatty

Add isAtty() on darwin (OS X)