Fixed Latex filetype detection