Remove intermediate paths since mkpath takes care of it.