fixed environmental variable lookup for deployment