Fix trailing slash when loading modules' template files