Update the version checking logic in the CI pipeline to ensure that
the script correctly identifies the latest tag. The change checks
if the latest tag is available before comparing it with the
VERSION file, improving reliability in determining if a version
bump is necessary.