Make it work on ruby 1.8.7

Signed-off-by: Bert Hajee <hajee@moretIA.com>
Make it work on puppet master and agent

Signed-off-by: Bert Hajee <hajee@moretIA.com>