Fix valgrind options.

The mac platform string test was incorrect. Use $osx = true as
set at the top from $host instead.