- Promote checking kldxref_clobber to a top-level guard, to avoid further processing if it is set to "NO" (the default)
- Check if the module directory contains "*.ko" files, if it does, generate the linker.hints file in the module directory
- Use $(...) notation instead of legacy backticks ...
Fixes: 2b55bea5380b ("Make /etc/rc.d/kldxref not print anything for directories that don't contain any kernel modules. This makes the common case completely silent, as it should be.")