core: export MMC-AGENT in the environement

Export the MMC-AGENT variable in the environement so that
child processes can know they were spawned by mmc-agent