gnome-boxes: perform kernel checks only when sources are available

Fixes Gentoo bug #504822 where attempted check on non-available file
resulted in usage errors.