Use path.sep.
Fix fetching different paths.
Cleanup.
Cleanup.
Configurable templatesVarName.
Support window global and module.exports.