fixed bug where a certain os environment variable is assumed to exist