Add back in tree.h
Fix a segfault in regex handling

For a regex pattern like "^/path(/.*)?$" the regex parser may
return "no match", setting the offset to UINT_MAX.

Signed-off-by: Mark Ellzey <socket@gmail.com>
Formatting cleanup