fix kowhai_str_to_path bug

fix bug where the kowhai_str_to_path routine could run off the end of
the string since the sym_start pointer is moving, but the path_strlen
stays constant (strnchr can potentially search path_strlen chars after
the end of the path_str)