Implements phantom.args and phantom.scriptName