build/common: fix lsb_release check
build/base.install: fix fake CODENAME_MINOR
build/repositories: use CODENAME_MAJOR in add_rhn_repository