[[ Bug 13339 ]] Initialise environment variables using MCS_getenv().
Merge pull request #1251 from runrevstephen/bugfix-13339

[[ Bug 13339 ]] Initialise environment variables using MCS_getenv().