Made changes for compatibilty with Red Hat based distros.