Use only ruby 1.8 compatible syntax in cookbook

Replace 1.9 method signatures with quite similar functionality
fixes #12