fix bug when processing several files in batch mode with latexmode metada set
Merge pull request #52 from Gabrielh/metadata-fix

Fix bug when processing several files in batch mode with latexmode metadata set