Easily get the CWD (current working directory) of a project based on package.json, optionally starting from a given path. (node.js/javascript util)