Detect MYSQL_MAJOR_MINOR_VERSION correctly

In the previous version, it doesn't support the version
which has alphabet character as suffix. (ex. 5.5.33a)