Fix $HOME rewriting on M1 Macs (#1467)
Fix $HOME rewriting on M1 Macs (#1467)

Progress towards
https://github.com/bazelbuild/continuous-integration/issues/1371

This change also fixes a similar bug on Windows ARM64.
bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration,bazelbuild/continuous-integration