build: Restrict tag names when discovering version