libm4: fix path_truncate() regressions on OS/2.

* m4/path.c (m4_path_search): Ensure that a null-terminator is
appended. Re-calculate a length of path after path_truncate().

Signed-off-by: Gary V. Vaughan <gary@gnu.org>