(#13284) Fix missing env vars during provider command execution
Manual merge and commit of pull request #606, which allows additional static
environment variables to be added to commands in a provider. This allows us
to support the MacPorts provider which fails in an odd way if HOME is not
available to it.
Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>