discover: Fix bad check of version string