MT#9637 Use native sftp command option

(cherry picked from commit 0bfebaadaa76832ad3e4d3114ddbbe59dc7eda58)
MT#9637 Unlink tmpfile after usage.

(cherry picked from commit 01e4a39ec955a6bc990ce4336cbf02a25ca39989)