79: add trailing slash for all paths ending with a directory