Fixed hardware variant detection on very old firmware

If there is no "hwvariant" on the kernel command line, HWVARIANT is
expected to be empty, but the way sed was used would echo the full
command line instead.

Fix from Paul Cercueil.