Yes, Changing $ROOTSYS to $(root-config --etcdir) works. Will this change be in the new upcoming versions?
$ROOTSYS
$(root-config --etcdir)