Important fix: parameter require shadowed node's.

Thus, `require('path')` failed miserably.
I was too confident that I make a very simple change and did not test.
Renamed all uses of require parameter to requireFn by refactor tool.
This code is tested and works.