adds terminal if pty.js module is installed