Fixes get_version_number to auto-select target when there is only one

* Fixes get_version_number to auto-select target when there is only one (#12121) via Josh Holtz

https://github.com/fastlane/fastlane/releases/tag/2.86.2
