If ruby is compiled with --with-sitedir=no, RbConfig::CONFIG['sitelibdir'] will report something like $(sitedir)/2.7.0 which is an invalid value. The RbConfig value is used by Facter to fill the ruby.sitedir/rubysitedir fact. Facter should not report the fact at all in this case.