Fixed issue with sftp put while having use_sudo together with mode set