distro check more robust