Convert cmd.js from file level to folder level.

Changes related to scanning directories recursively with *.js filter.
Also updated to use latest node modules for dependencies.

Reasoning for this change:
A tool like node-leaky should often be run on folder level rather than file level.
We did have folder level scanning earlier but it used to work with only 1 depth level.
Now it can work recursively on unlimited depth level.