fix latex backend for files without modules
Merge pull request #453 from dwightguth/latex

fix latex backend for files without modules