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