RM3979: reworked a test to use putenv() instead of setenv().
Merge pull request #1612 from ediosyncratic/setenv-purge

RM3979: reworked a test to use putenv() instead of setenv().