Fix bug about conf dir creation