changed file exist check for download_file