Corrected incorrect use of environment.
Corrected environment lookup function.
Merge branch 'master' of https://github.com/DaMSL/K3-Core