Improve removal of IPv6 interfaces in ipa-set-hostname.sh