[tor-commits] [torbrowser/master] Extract common build-tor functionality