Allow default gateway variable in metadata url

Allows cloudstack default setup to work with configuration set to:
ec2_metadata_base_url = 'http://${default_gateway}/latest/'