Fix FTP completion. Fixes #918.

I'm not sure what happened while applying previous patch for `ftp` completion, but this pull request fixes it.