[COOK-2637] - Silence expected errors from `which`