add protection for distro/version check