Revert "ftpserver.pl: Corrected logic from commit 27b7b1062f9d97"

This reverts commit 558034ab7002d1 as it appears to break the auto
builds. More thought is required for this!