Added fix for puppet 3.0/Bug #15756

Should also fix support for 2.7 on ruby 1.9