allow global environment substitutions in any config section

closes #560