use resolve to determine module path
This uses resolve to determine the path to the module files rather than relying on existence of node_modules directory; in turn enabling the use of Yarn's Plug'N'Play (or similar alternative module resolution).