change env lookup to use glib2 hashtable