Avoid duplicates of the 'all' group when using inventory script.

Do not recreate an 'all' group when it is in the inventory script's
output, but use the one created upfront.