added version detection for mysql on osx