automagically determine distro and major for rpm