Fixing bug in cgroup application

The apply_scheddeadline function is now using the proper cgroupname instead of the resource manager one.