Use environment for archive.extracted. Fixes #10324.
Merge pull request #10328 from mbarrien/archive-env

Use environment for archive.extracted. Fixes #10324.