Passive mode operational

Changed the condition so the mode variable is read and passive could be set.
Merge pull request #1 from danrodriguezguerrero/patch-1

Fixed passive mode setting for FTP targets