This isn't robust enough if somebody adds a custom OS name.  We're OK if they're using Facter as it doesn't use spaces, but it should work for something like "Red Hat Enterprise Linux 6.4" too (Katello does this, as might a non-Puppet user).

Maybe use a.last or a regexp?