Shelling out to RbConfig::CONFIG["sharedstatedir"] may be better here. Not sure it matters though, because hiera is hardcoded to var as a fallback.