     [path, args] = [paths.jlpath(), client.clargs()]
     check = paths.getVersion()
 
-    if @bootMode is 'Remote'
+    if provider is 'Remote'
       check = Promise.resolve()
     else
       check.catch (err) =>

    ssh.consumeGetServerName(name)

  provider: (p) ->
    @bootMode = undefined
    if p?
      @bootMode = p
    else
      @bootMode = atom.config.get('julia-client.juliaOptions.bootMode')
    switch @bootMode
      when 'Cycler' then cycler
      when 'Remote' then ssh
      when 'Basic'

        client.detach()
        console.error("Julia exited with #{e}.")
      .then =>
        if provider is 'Remote'
          ssh.withRemoteConfig((conf) -> cd conf.remote).catch ->
        else
          paths.projectDir().then (dir) -> cd dir
