Make IPAddr check work with Ruby < 2.0

This wasn't caught by Travis because the tests were not in a directory
that spec_standalone looks for.