detect amazon system and use redhat classes