auto detect and handle fasta/fastq/gzip/bzip2