 
   onDidStartUsingLevels: ->
     @setUpConfigManagement()
-    whitelistPath = path.join @pkgDirPath, 'language', 'whitelist'
-    process.env['LRB_WHITELIST_PATH'] = whitelistPath
+    process.env['LRB_WHITELIST_PATH'] = path.join @pkgLanguageDirPath, 'whitelist'
 
   onDidStopUsingLevels: ->
     @configSubscription.dispose()

    @activated = false

  getExecutablePath: ->
    executableDirPath = path.join @pkgDirPath, 'language', 'executables'
    executable = if process.platform == 'win32' then 'run.exe' else 'run'
    return path.join executableDirPath, process.platform, executable


module.exports =
  activate: ->
    @pkgName = 'levels-language-ruby'
    pkgDirPath = atom.packages.resolvePackagePath @pkgName
    @pkgLanguageDirPath = path.join pkgDirPath, 'language'

    @configFilePath = CSON.resolve path.join @pkgLanguageDirPath, 'config'
    @executablePath = @getExecutablePath()

    pkgSubscription = atom.packages.onDidActivatePackage (pkg) =>
