Build: Use cheerio to update paths inside hrefs

Closes gh-7202
Fixes gh-6941
Fixes gh-6677