Mac: Prevent NRE by falling back to executing assembly when detecting platform