Changed the AMI checking logic to support Eucalyptus. Earlier version had hardwired support for AWS only.