Add support for rewriting package tarball urls