Fix process check. Adapt its behavior according to the version of psutil.