add trailing slash to directory