fix DOWNLOAD macro to use cookiefile variable