Made the output do* flags depend on the output file names
In this MR the doWriteXYZ and XYZFileName file name flags are by default related. I.e. if the file name is nonempty then respective "do" is set to true. Tagging @rbielski as this is followup of !27215 (merged) @wlampl @emoyse