aren't we supposed to enter into this condition 
https://github.com/tmeshkova/gecko-dev/blob/embedlite/embedding/embedlite/EmbedInitGlue.h#L125
which is basically does the same when libxul not found in GRE_HOME ?