Fixed segfault when no input file on command line