The alias approach is poorly inherited by other process spawned during the test.
So use the same approach as for `python`/`python3` we write a file explicitly.
Doing this fixes `which hg` calls to point at the same location as `hg`
Using chg server side has some minor effect of some stdout/stderr ordering when
using `chg` as the server too on python.