Fix ec2 detect