Remove unnecessary env clearing for localhost deployments
Merge pull request #406 from nhr/v4_remove_obsolete_env_handling

Remove unnecessary env clearing for localhost deployments