Fixing check statement problems for existance of git tag