Fix matplotlib installation step

Calling "matplotlib.__version__" if matplotlib is not installed makes the script crash.