adding trailing slash to directory