Fixes SFTP upload code
Merge pull request #125 from nsendetzky/master

Fixes SFTP upload code