[tor-commits] [torbrowser/maint-2.3] Extract common build-tor functionality