Do something sensible on systems without /proc/<pid>/sched: use /proc/<pid>/schedstat instead.