* fix(#2004): Change path_relative to use string find and substring to avoid using regex.
- This removed the original gsub with unintentional captures in path_to_matching_str
- The original regex based code captures create a limit where input path cannot
have more than 32 special charactors ( `.` , `_` or `-`)
* style nit
---------
Co-authored-by: Alexander Courtis <alex@courtis.org>