Fixes the method by which the location of typedoc's executable is located

- `require.resolve('<module name>/package.json')` will properly locate the path to an npm module
- we must find `package.json` specifically because it is guaranteed to
  exist in the module's root.  It's possible that a
  module's `package.json` declares `"main": "lib/subdir/index.js"`