Added support for module.exports style templates