don't shell out for cgroups management

this is much more expensive than just using io/ioutil, and was
originally used so that it could be used with RemoteCommandRunner, which
is gone now.