Fix CurlFile::Exists/Stat for check ftp directory with proper cwd method.
Make sure call CurlFile::Exists with url path ends with slash for ftp dir.
Merge pull request #2274 from ulion/fix_curl_exists_stat_for_ftpdir

Fix CurlFile::Exists/Stat for check ftp directory with proper cwd method.