More robust link checking