Added backward compatibility for psutil < 2.0.0