Clean up sysctl location check.

Portability improvements submitted by Josh Kupershmidt.