meson.build: fix paths to knot-dns libs if exec_prefix != prefix
Man, this is complicated. But I hope that this one will really be
reliable, with sh
and wc
being present in basically every POSIX env.
The issue was experienced e.g. in turris/os/packages#944 (comment 294801) as a regression of !1481 (merged)