Properly check for existence of environment variable keys in a manner that does not throw. Fixes https://github.com/juj/emsdk/issues/2 .