Fix version check for CentOS

+ use `-q` option for `grep` instead of redirecting stdout to `/dev/null`.
Replace another `grep [...] > /dev/null` using `-q`
Merge pull request #1 from p-l-/patch-1

replace grep [...] > /dev/null with grep -q