Still use dockerpty for containers without a tty (closes Issue #1)