Duplicate code - 'dry run' did nothing

Duplicate set of document update+commit/eprint regenerate, both inside and outside the 'if not dry-run' block (effectively meaning that 'dry-run' was also a wet-run...).