Fix behavior with incorrect settings files.
Fix bug in ftp publisher.