Check for existence of matplotlib.rc_file before calling it.

Fixes crash on older matplotlib versions.