Fix duplicate directory copy.