improve filetype detection for tex related files