Begin - delete $gen instead of echo empty

To avoid the block of code at the end to be executed if no update was
needed.
"[ -f $GEN ] && {..}"