fix latex backend for files without modules