perform node_modules check with folder boundaries

checking for /node_modules/ instead of node_modules; minor difference, but this now allows you to have a front-end script called node_modules_handler.js or similar in the root directory.