Adding basic isEC2 check to determine if code is running on EC2 instance