Add a base path for output. Use the parallel-safe function evaluation in the awkward site domain constraint.
Minor fix to the output base path stuff