Write out pidfile to storepath root