Partially implement patch from David M Noriega
(https://github.com/davidmnoriega):

* do not use `-i` option for `sftp` command, as some sftp versions do
  not support it
* use `-o IdentityFile=<file>` instead for `sftp`, that is (probably)
  supported by any version of sftp.