Update dockerpty for non-TTY multiplexing.

Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
Merge pull request #290 from d11wtq/bugfix/multiplexed_non_tty

BUGFIX: Update dockerpty for non-TTY multiplexing.