add fix for non-ec2 hosts