Added support for RHEL, Centos, Fedora and Amazon

Tested on Fedora 19 and Amazon.