Add additional condition in check for Amazon AMI os