Fix fasta formatter to correctly format sequence files

Signed-off-by: Vivek Rai <vivekraiiitkgp@gmail.com>