Fix #225 to work with Ruby 1.8.7

Named capture is not supported in Ruby 1.8.7.
Merge pull request #234 from serverspec/fix-225-to-work-with-ruby-1.8

Fix #225 to work with Ruby 1.8.7