Fixed FTP stat check