pub fn resolve_output_dir( output_dir: Option<PathBuf>, ) -> Result<PathBuf, WorkflowError>
Resolves the output directory for a workflow: the given path (created if missing) or the current directory.