fix dictionary name fetching
fix template filename sending to plugin
fix baseURI resolving for node.js environment