Fix Upgrade tag names handling in CondDB configurable
Do not prepend 'upgrade/' to tags if not needed, i.e. when
- it already contains the prefix
- it's a special case ('', 'HEAD', 'upgrade')
- it's a commit id
Do not prepend 'upgrade/' to tags if not needed, i.e. when