get_avail_core_count(): bug fix when not in cpuset

When you're not in a cpuset, the number of cores from the
/proc/<pid>/status file can be higher then the number of actual cores
available.
get_avail_core_count(): small regex bugfix