Fixing install scripts for numpy and matplotlib

This ready to be merged.