fix incorrect path calculation for paths with trailing slashes
abandon RT
v0.001003

  - abandon RT
  - match trailing slashes when nesting (Fitz Elliott)