Edit the code base on comments

comments from node-ssh2 author
- https://github.com/mscdex/ssh2/issues/72#issuecomment-39879585