removes duplicate directory