fix stderr by selectively enabling interactive mode
Merge pull request #9 from micnews/fix/tty

fix stderr by selectively enabling interactive mode