Better cpu counter on Linux

As talked about in https://github.com/celluloid/celluloid/issues/171, this does a better job of determining cpu count on Linux.

Of course, I haven't been able to test this on anything but Debian and Ubuntu. I know this should work on RedHat as well and they seem to do something similar in libvirt.