Named matches fail on Ruby 1.8.7

Named matches don't work on Ruby 1.8.7, still the most used Ruby version by puppet installs.