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

    options =
      cwd: @getCwd()
      env: process.env
    args = (@options.cmd_args.concat args).concat @options.script_args

    stdout = (output) => @display("stdout", output)
    stderr = (output) => @display("stderr", output)

      @customOptionView.toggle()

  saveOptions: =>
    @run_options.cmd_cwd = @customOptionView.inputCwd.val()
    @run_options.cmd_args = (item for item in @customOptionView.inputCommandArgs.val().split(' ') when item != '')
    @run_options.script_args = (item for item in @customOptionView.inputScriptArgs.val().split(' ') when item != '')

  resetView: (title='Loading...') ->
    # Display window and load message
