Get template directory from module path
Also serialize collected data as index.jsonld