Fix up the revert scripts