MXR-225 add default definition of any environment
MXR-226 change template variable determination
MXR-227 change template alias determination