Use new OSL getattribute calls to instrospect shadergroups.

I see "shadergroup" and "shader group". I suggest improving consistency by using "shader group" everywhere.