remote-curl: rewrite base url from info/refs redirects