Adjustments to work with Red Hat based distros

Adjustments to work with Red Hat based distros (RHEL, CentOS, ...). Tested in RHEL and CentOS 6.x.
Merge pull request #43 from h3nrique/patch-1

Adjustments to work with Red Hat based distros