[core] AMI linux detection