The test isn't working correctly on macOS 13.3 and the bool tensor fix for cumsum is currently always needed anyway, so enable the fix by default.
Move most Mac related code to a separate file, don't even load it unless web UI is run under macOS.