Update regular expression to handle more variants

Older CentOS versions returns the version string on this format:

    gcc (aaa) x.y.z yyyymmdd (bbb)