Add smarter FTP support for sub directories.