Use the wrapped global to decide if we are in an xpcshell environment or not (bug 901930). r=vporof