Correctly detect Darwin version.

-r prints only the kernel version, whereas -v prints the "operating system version", which contains many other things including the hostname which is a variable string.