fixing git tag/branch check