Duplicate code - 'dry run' did nothing

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