Fix regex to be compatible with ruby 1.8.7
Fix regex to be compatible with ruby 1.8.7

Old code uses some crazy regex stuff which doesn't exist in ruby 1.8.7,
so I change it to be simpler and compatible with 1.8.7.

discovery-digital/puppetlabs-mongodb,noris-network/puppetlabs-mongodb,discovery-digital/puppetlabs-mongodb,noris-network/puppetlabs-mongodb,noris-network/puppetlabs-mongodb,discovery-digital/puppetlabs-mongodb,discovery-digital/puppetlabs-mongodb