Updated to work with Amazon Linux (avoiding conditional based on centos version numbering)