stripping trailing '/' for pathchecks