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.
Merge pull request #3993 from stoned/inventory-script-all-group-fix

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