Add logic to handle older versions of nginx cookbook

In order to allow this cookbook to be compatible with versions of the
nginx cookbook prior to 2.0.0 and after, this commit adds logic to check
the version and include the http_realip_module correctly for that
version of the nginx cookbook.

[24882]