You could use Ohai::Config.platform_specific_path here.