Corrected if statement to detect if input files are in fasta or fastq format.