Write namespace/primary cart dir correctly for v2