A suggested variant of sed transformation to safeguard paths given as either
"parent/child" or "parent\/child". Not fully tested yet, thus commented out
in the commit.
Start re-factoring resources-util. Big-bang commit, rename the main script,
the functions it provides, remove or shuffle around some of the functions,
add corresponding scripts, etc. Only the internal users that are part of
comma itself have been updated so far. Not properly tested yet.
Install the renamed / added scripts.
Wrap df call into timeout. If any of the mounted NFS filesystems is stale,
the call never returns, causing mysterious hang-ups in comma-test-run --help
and other presumably innocent users.

Also, provide a guard to insure being sourced only once.
Update the (unit) tests. The storage test fails due to comma-test-match
issues, to be addressed separately.
Minor: just define a local name variable, do not attempt to inherit it from
the callers environment.
Use a more portable sed construct to ensure that json paths for the queue
and current resources users have '/' separators properly escaped.
Rename to comma-top.
Add shared memory measurements to the output.
Minor: more paranoid grep match.
Fix a cut-n-paste bug: used shared memory is 3rd field of df output.
Better comments and description of the functions define therein.
Instead of using timeout (which causes comma-top to fail under heavy load)
restrict df to local drives. This by-passes issues with hanging mounts.