We have g_getenv for portability reasons, so let's use it.