added test and updated params for RH
Adding logic for redhat
tested on rhel5