Support attaching to containers with tty=False.
Update README.md with non-TTY behaviour.