Fix port number assignment for broker ports on start sm and te commands.