I've updated the example in 53b841c and 870dd9b.

The code should be in a stable, devel, or head block if it can be expressed that way; if it only applies to two out of the three then repeating code is preferable to the problems that arise from using a conditional.

The condition on `MacOS.version` is fine, though.