Be consistent with exist? vs exists? and make sure to .chomp always on a string as Facter::Util::FileRead.read() might return 'nil'.