Pass command line arguments to script in MantidPlot

In the case where MantidPlot acts in place of a standard script
interpreter then set any extra arguments after the filename as
sys arguments in the scripting environment, e.g. sys.argv in Python.
Refs #9639