Added Amazon Linux compatibility
Switched to system-release check since Amazon Linux doesn't have lsb_release by default