Cleanup some code in the iptables module

Inside build_rule for the dports & sports code, if dorts & sports are a list then use a join instead of the for loop to build the list of ports.