remove slash in path