Better way to obtain EC2 instance Public IP

This fixes problem #3 e.g. when metadata service is not instantly available on newly created EC2 instances