CLOUDSTACK-7405: Make the trailing slash conditional for meta-data requests

This should fix the cloud-init issues described in this issue.
Merge remote-tracking branch 'origin/hotfix/4.4-7405' into 4.4