Should this be `if (isMac && withLdOpt==null)` ?