Change where the auto-id is done

Default config was always erasing ids. The default "auto-id" option now take into account whether the id has been specified or not.

From what I saw, it does not break anything, but it might be good to double check.