This uses the syctl.proc_translated sysctl, which is the Apple documented way to check for Rosetta 2 environment.