Fixes to Valgrind for LinuxBrew

Conditioned the flag for `--build=amd64-darwin` on the host being OS X, otherwise the formula fails.  A few  OS X version checks were also conditioned on the OS being OS X, this is mainly for aesthetic reasons.