Modified __validate_ec2url to stop crashing when $EC2_URL is undefined (issue #1)
Merged bug fix for crash when $EC2_URL is undefined