updated epel check logic.