fix missing trailing slash for path