Fix build for branches without tags