fixed some issues with the root checks

short-circuit the exit_if_running_as_root function so as to make it work
better.
use the ruby mcwrapper, not the bash one in tests