fixed a bug in the matplotlib version checker