[x86] preinit: use grep -q where applicable