fix arguments to isinstance() in env lookup
Merge pull request #2800 from tartansandal/env_bug

fix arguments to isinstance() in env lookup