Minor bug fixes

Found these 2 minor bugs that prevent iptables insert from working.
First one causes duplicate key 'table' error to be raised. 'build_rule' is also called in the append function with 'family' as a keyword argument.
Second one is just a misplaced parenthesis.