Adding some logic for Amazon Linux