Modified else statement in case outfile is missing.