Added preinstall check for brew under mac os x