handle os.cpus() returning undefined

It seems that on some systems os.cpus() will return undefined, added a guard so that in this case we don't return any cpu information