Something to check - does 'getenv()' return nil if the environment var isn't defined? If it can, then the signature needs to be:
```
virtual bool GetEnv(MCStringRef p_name, MCStringRef& r_value)
```
and the method updated appropriately. (i.e. GetEnv() returns false if the environment var doesn't exist).