Added support for resolving widget module relative to templateName (assume file path)