ENH: Added --check-rerun option to allow a runtime check of whether a new generate should really be done.