Added Amazon Linux compatibility

Checks for Amazon Linux in /etc/system-release since lsb_release is unavailable by default on the Amazon Linux distro.