Fix detection of broken links