Added path cleanup

- Minor bug fix where path names remove trailing slash if there
  is one.