fix ruby 1.8.x syntax errors

also update to upstream 9.3.0 cookbook