relative path trailing slash fix