Ruby 1.8.7 support

The following two minor changes make the cookbook syntax-compatible with Ruby 1.8.7, which is an unfortunate requirement for anyone running on Amazon OpsWorks. (FWIW, this was the only such change required for the [docker cookbook](https://github.com/bflad/chef-docker) and all its dependencies.)