Get GNOME version

See <http://unix.stackexchange.com/questions/73212/how-to-get-the-gnome-version/>.