discover/yaboot: fix device parsing