Improve CPU count handling in mmap_extract.py.