pkgautoversion: echo result if ref is a tag (bugfix)