Require shell before setting shell-mode in the stream output buffer