Patches for check_ftp.pl [sf#1152118] [#563]