Fix core count detection on PBSPro (e.g. Archer).