Ensure clean directory for pids when testing