Adds a retry mechanism for check_url

This reduces the risk of transient issues in searching for the
OpenStack HTTP or EC2 metadata service.