MDL-39840 environment: add support for environment.xml in plugins