Making active and passive mode work for FTP