           for modDir in configOptions['mod_dirs']
             @modDirs.push(path.join(projDir, modDir))
         if 'ext_index' of configOptions
-          for extIndex in configOptions['ext_index']
-            indexPath = path.join(projDir, extIndex)
+          for relPath in configOptions['ext_index']
+            indexPath = path.join(projDir, relPath)
             try
               fs.accessSync(indexPath, fs.R_OK)
               fs.openSync(indexPath, 'r+')

                    obj['desc'] = @descList.length-1
                  else
                    obj['desc'] = descIndex
    for modDir in @modDirs
      try
        files = fs.readdirSync(modDir)

    projectDirs = atom.project.getPaths()
    @modDirs = projectDirs
    @exclPaths = []
    extPaths = []
    for projDir in projectDirs
      settingPath = path.join(projDir, '.ac_fortran')
      try
        fs.accessSync(settingPath, fs.R_OK)
        fs.openSync(settingPath, 'r+')
        result = fs.readFileSync(settingPath)
        try
          configOptions = JSON.parse(result)
        catch
          @addError("Error reading project settings", "path #{settingPath}")
          continue
        if 'excl_paths' of configOptions
          for exclPath in configOptions['excl_paths']
            @exclPaths.push(path.join(projDir, exclPath))
