In regen_lib.pl, when opening, first unlink a previous file of that name.