fix issue with crash if no input file was specified.