fix bug with not existing ftp directories