Detect older GNOME variants

Those use a different environment variable
Merge pull request #33 from danimo/old_gnome

origin