Some bugfixes to allow modifying the download URL a bit.