So maybe it's something with this wrapper-script, and the binary kpsewhich(when its needed libs and itself is installed) has no problem. I think I fixed this in r58227, by adding the binary name used under the wrapper to the test texmf.cnf. +++ tests/cnfline/texmf.cnf (working copy) .. +maxpr.lt-kpsewhich=200