Daniel, that code does look like it would catch what version of rancid is being used, but either it can't do it by itself or the rancid version is a variable in the observium config file that needs to be set.