superenv: apply apr-1-config fix to 10.8+

Fixes #20417.
Closes #20474.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>