configure: fix version check with empty version