Move IsTerminal into logrus. Pulling in ssh/terminal adds a hg dependency. Too much for one tiny function.