Bad check, conflict between 5.1 and 5.10

-The 5.10 version is handled by the 5.1 case, correct this
-Change the logic to be futur proof, in term of RHEL5 release.