utils: add proper handling of "/" special case in uh_path_match()