Switch to comaparing whether we are on the latest tag using exit status instead of string
This fixes an issue, where if the command for grabbing the latest tag fails, (git < 2 for example) it was still triggering a push to rc and latest.
Fixes: https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1225