code: function loadFile(dir, filename) {
    if (filename == null) return {}
    filename = path.join(dir, filename)
    try {
      return require(filename)
    } catch(e) {
      return {}
    }
  }
docs: Load configuration file