ftp: Relax requirements for EPSV and EPRT

Fix unit tests after 1d4fb58.

(cherry picked from commit af625e3cf88fe40a1d009dc46c1c6018047511bd)