Fixed finding the IP

This code only worked if the last interface was the public IPv4 interface. If the reduce had the `accum` already, but then did another iteration, since it doesn't fall in `if (!accum)` it would return `undefined` for the `ipAddress` value.
Merge pull request #4 from remy/master

Fixed finding the IP