Changes for ruby 1.9.3 and puppet 3.x

Pull request submitting fix originally provided by @onyxmaster in Issue #1.