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

This should fix the cloud-init issues described in this issue.
CLOUDSTACK-7087: Latest OS X VPN client not working Downgrading openswan version to 1:2.6.37-3

Reviewed-by: Abhinandan

Signed-off-by: Sheng Yang
(cherry picked from commit 2dfd278625a5d569a5cce2fec5ccb0d7c515c9e8)
Merge remote-tracking branch 'origin/hotfix/4.4-7405' into 4.4