Fix tag/version detection