fixed problem with distro check