Prevent division by zero, if hardware_concurrency() implementation returns 0.
Merge pull request #1 from daniel-j-h/hardware-concurrency-fix

Prevent division by zero, if hardware_concurrency() implementation returns 0.