Fix automated tests for systems without IPv6

This should work for most *nix based systems.
A more consistent way to check if IPv6 is available would be preferable but does not exist.