fixed bug that prevented generation of config file if ftp is used