Fixed regex pattern matching in puppet mode

Fixes incorrect regex pattern matching where after a successful match was made, if there existed a '/' beyond what would be considered a valid match, everything between would be included.

Example currently causing incorrect matching:

    if $php_fpm_ini == undef {
      $php_fpm_ini = $::operatingsystem ? {
        /(?i:Ubuntu|Debian|Mint|SLES|OpenSuSE)/ => '/etc/php5/fpm/php.ini',
        default                                 => '/etc/php.ini',
      }
    }