Update seqtk.c

fixing bugs and also "shortcircuting" the case when param == 0