Fix check for EC2_URL