bugfix : add last slash in directory path