correct 'canHandle' check on lib/input/tty.js
Use apply instead of call to call super constructors.