Allow getting correct version of matplotlib