Fix small bug in main when there is less t han one input file