Fixed creating base directory in ftp adapter