[version_checker.sh] Fix bug with repeated version numbers when the Fedora package has subpackages