detect .tsv file extension