Re #5939. Better way of constructing the path to mantidplotrc.py
Re #5939. Make sure any local IPython is picked up first.

Before a system installed one.