       @message "cwd: #{@cwd}"
 
   ls: (args)->
-    files = fs.readdirSync @cwd
+    files = fs.readdirSync @getCwd()
     filesBlocks = []
     files.forEach (filename) =>
-      filesBlocks.push @_fileInfoHtml(filename, @cwd)
+      filesBlocks.push @_fileInfoHtml(filename, @getCwd())
     filesBlocks = filesBlocks.sort (a, b)->
       aDir = a[1].isDirectory()
       bDir = b[1].isDirectory()

      @cliOutput.append data
      @scrollToBottom()
    try
      @program = spawn cmd, args, stdio: 'pipe', env: process.env, cwd: @cwd
      @program.stdout.pipe htmlStream
      @program.stderr.pipe htmlStream
      removeClass @statusIcon, 'status-success'

      @open()

  cd: (args)->
    dir = resolve @getCwd(), args[0]
    fs.stat dir, (err, stat) =>
      if err
        if err.code == 'ENOENT'
