ruby: figure out number of cores available on the host at runtime