Fix to get ride of last MAXSTRING variables.

And fixes to make testfind work again after some time. As no one
probably uses this ever it was broken for some time already.