Can't you do:
```
MCS_getenv(MCSTR("DOCUMENT_ROOT"), MCservercgidocumentroot)
```
here?