remove duplicate '/' from path