Adding trailing slash to paths