TBB architecture check depends on working directory
When start-tor-browser is run from a location other than within its directory (eg, it is not invoked as ./start-tor-browser), the architecture check introduced for #3841 (closed) looks for tor at the wrong path and fails with a message like this:
./Downloads/tor-browser_en-US/start-tor-browser: 123: [: -ne: argument expected
The check fails open, though, so after that error is printed everything still works (assuming the architecture is correct).
TORARCHITECTURE=$(expr "$(file App/tor)" : '.*ELF \([[:digit:]]*\)')
TORARCHITECTURE=$(expr "$(file $(dirname $0)/App/tor)" : '.*ELF \([[:digit:]]*\)')
should fix the problem.