check-device: fix the parsing of the device name
After mesa's !11027 merge request, the parsing of the device name got broken.
After this commit, everyone wanting to test their code will need to update to a mesa version including !11027.
Signed-off-by: Martin Roukala (né Peres) martin.roukala@mupuf.org