remove "/" in paths