Important fix: parameter require shadowed node's.

Thus, require('path') failed miserably.
I was too confident that I make a vert simple change and did not test.
Renamed all uses of require parameter to requireFn by refactor tool.
This code is tested to work.
Merge pull request #19 from herby/master

Important fix: parameter require shadowed node's.