Fix check for FTP return code