Similar absolute url fix for cabal-install

In this case with index generation it's more benign, but still better
to handle things consistently.