this isn't the right fix, as you admit ;)

RPM::File doesn't even have a .directories method, though it has a config_files one. I"ll see about finding the right thing.