Use the homebrew/python tap for numpy, scipy, and matplotlib; it supports more install options. Fix some path problems to avoid using the system installed numpy.