The config could return `null` or `undefined` and so it should still probably default to `_.last(atom.packages.getPackageDirPaths())` in this case so maybe just make it:

```coffee
getPackagesDirectory: ->
  atom.config.get('core.projectHome') ? _.last(atom.packages.getPackageDirPaths())
```