         @linterName = 'js-semistandard'
         @executablePath = semiStandardPath
 
+    if @executablePath
       @executablePath += '/cmd.js'
 
-    if !fs.existsSync @executablePath
-      throw new Error 'Standard or Semistandard wasn\'t
-        installed properly with linter-js-standard,
-        please re-install the plugin.'
+      if !fs.existsSync @executablePath
+        throw new Error 'Standard or Semistandard wasn\'t
+          installed properly with linter-js-standard,
+          please re-install the plugin.'
 
 
   formatMessage: (match) ->

      'node_modules',
      'standard',
      'bin'
    semiStandardPath = path.join __dirname,
      '..',
      'node_modules',

      'bin'

    if config.codeStyleDevDependencies
      devDeps = pkgConfig(null, { cwd: @filePath, root: 'devDependencies' })

      if devDeps and (devDeps.standard or devDeps.semistandard)
        if devDeps.standard
          @executablePath = standardPath
        else
          @linterName = 'js-semistandard'
          @executablePath = semiStandardPath
      else
        @executablePath = false
    else
      if config.style == 'standard'
        @executablePath = standardPath
