Fixed naming issue for infiles/outfile name concatenation issue