     options =
       cwd: @getCwd()
       env: process.env
-    args = (@options.cmd_args.concat args).concat @options.script_args
+    args = (@run_options.cmd_args.concat args).concat @run_options.script_args
 
     stdout = (output) => @display("stdout", output)
     stderr = (output) => @display("stderr", output)

    )

  getCwd: ->
    if @options.cmd_cwd is null || @options.cmd_cwd == ''
      atom.project.getPath()
    else
      @options.cmd_cwd


  stop: ->

    atom.workspaceView.command "script:kill-process", => @stop()

    @ansiFilter = new AnsiFilter
    @run_options =
        cmd_cwd: null
        cmd_args: []
        script_args: []
