detect the version in "package NAME VERSION"