Detect older GNOME variants

Those use a different environment variable