use grains['osrelease'] to decide wich EPEL package to install

Both RHEL 6.x and 5.x are supported versions.