The current implementation of IsTerminal does not properly work when stdout or stderr are used through a SyncLogger. I came up with a really simple PR that addresses the problem in an elegant, 100% backwards-compatible manner. See #482.