added support for rhel. Tested OK on 5.x.