Prevent adding duplicate tags with different casing

fixes #2478
- Check for existing tags with different case
Merge pull request #2495 from halfdan/2478-tag-duplicate

Prevent adding duplicate tags with different casing