Fix dead links

I noticed a dead link this morning, and while fixing it I noticed many previous pull requests were fixes for dead links, so I added some code to check for them.