Fixed regression in input file handling