introduce get_altdistr_version (M50 -> 5.0) and get_altdistr_mod (5.0 -> M50) funcs, add tests for it