Add methods to scan_template.rb to enable port exclusion.