Fixes #5427: Add no authentication module
Use /bin/sh when running list-compatible-inputs

This removes the assumption that list-compatible-inputs has execute
permissions, which may not be true in some installations.
Fix for class eval optimizations in 3.6.1+

In 3.6.1+ a class evaluation optimization was introduced that prevents
the `services_array_defined` class from being re-evaluated several times
in a loop, so the `regextract()` is only evaluated for the first service
defined. To fix this, we define per-service classes, and define
`services_array_defined` using `classmatch()` on those.