try alternate detection mechanism for ec2