Improved MySQL version detection for install script.