Fix trailing slash for sliced paths.