(PUP-3162) Issue/stable/pup 3162 whitelist environment interpolation

Switched to whitelisting settings for $environment interpolation with directory environments enabled.