fix node path resolution
Merge pull request #179 from jfaissolle/node-path-resolution

Improve node path resolution

The old implementation did the wrong thing when a `package.json` was in the project directory.