Fix version check for CentOS

+ use `-q` option for `grep` instead of redirecting stdout to `/dev/null`.