Update dockerpty. Fixes #352.