-if [ ! -x "${SDKROOT}/usr/local/libexec/availability.pl" ] ; then
- echo "Unable to locate ${SDKROOT}/usr/local/libexec/availability.pl (or not executable)" >&2
+AVAILABILITY_PL="${SDKROOT}/${DRIVERKITROOT}/usr/local/libexec/availability.pl"
+
+if [ ! -x "${AVAILABILITY_PL}" ] ; then
+ echo "Unable to locate ${AVAILABILITY_PL} (or not executable)" >&2