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

When initialising $ variables get the value using MCS_getenv().