Fixed minor bug in upload functionality that caused SFTP login to fail