Allow default gateway variable in metadata url

Provides support for cloudstack default setup when config file contains:
metadata_base_url = 'http://${default_gateway}/'