ftp/curl: Convert to options helper
(cherry picked from commit aabdfa405a77f8ecabb504e2bde73aae57488ad0)