Fix construction of download URL