Dynamically enable the support ip versions

Based on a discussion here: https://github.com/example42/puppet-iptables/commit/2f1a23d426a0b8a4ebf7a61b338fdc0d151509f8#commitcomment-4260502
(following 2f1a23d)