Why does it matter where it's being called from? There are 3 locations we have to worry about here:

* the project root, `root`
* the directory containing the file currently being processed, `path.dirname filename`
* the commonjs-everywhere directory with core modules, `path.join __dirname, '..', core`

`process.cwd()` doesn't really come into play other than a default value for `root`