When only 1 'extra_ports' is defined in ctrl/modopts.ini then the options.extra_ports is an int, and so .replace() fails