Set pid to existing dir.