Fix check for empty distro