Replace hard-coded module name in template path with $module_name