upgrade pty.js to work on 0.10