Copy of the Jsch source code from 0.1.50 so I can fix some bugs