Fix module publish

- Retrieve index.cnxml.html with correct version from db in /contents
- Delete index.cnxml.html before generating one in the trigger