Add fallback if metadata server cannot be resolved

I'm currently trying to run a docker repository server van cannot edit the hosts file. Adding this fallback can serve as a hack until the hosts file is setup correctly. see #6 and #7