Rather than take the first two components, drop the last one at the end.
This makes it compatible with both old and new gnome version schemes.
(From OE-Core rev: fa8950d0cf6174ce517275fe44df9e4c0788d5f0)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>