Fixing HOMEBREW_PREFIX reference issue.

Fixing the code that lead to issue:
https://github.com/josegonzalez/homebrew-php/issues/529

Use of the --with-libmysql flag caused the path referencing homebrew directory to be incorrect.