Better check for ipv6 presence before disabling it

I think this is a better way to check for ipv6 than the previous one. See http://trac.zentyal.org/ticket/6910 for a example of a failure with the previous way.

What do you think?