Implement pids dir creation