fixing some issues on older versions of puppet/ruby