[tor-commits] [ooni-probe/master] Refactor code for setting of tor port