mod/os: only output matches for distro detection