Fix construction of download link