Initialize outfile if empty.