Fixed missing getEnv().
Merge pull request #175 from LoomSDK/BJG-FixMissingEnv

Fixed missing getEnv().