since this code was move I think that you can use the onOSFamily('osx') conditional