cleanup duplicate directory