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
Merge pull request #4 from kachok/patch-1

Better way to obtain EC2 instance Public IP