Add filetype detection for tac, json and txt