ftpserver.pl: Corrected logic from commit 27b7b1062f9d97