Do a HEAD request on URLs to check if the exist. Fixes #111.