fix persist_dir creation