Fixing install scripts for numpy and matplotlib

I am still testing this, not ready to be merged.