Make writing to outfile/stdout an either/or decision