     filename = path.normalize(path.join(dir, name))
     return findFileResults[filename]  if findFileResults[filename]
     parent = path.resolve(dir, "../")
-    if existsFn(filename)
+    if fs.existsSync(filename)
         findFileResults[filename] = filename
     else if dir is parent
         findFileResults[filename] = null

        return loadJSON(projConfig)  if projConfig
    envs = process.env.HOME or process.env.HOMEPATH or process.env.USERPROFILE
    home = path.normalize(path.join(envs, "coffeelint.json"))
    return loadJSON(home)  if existsFn(home)


fs = require 'fs'
path = require 'path'

# Cache for findFile
findFileResults = {}
