xsys: moved check_for_root into xsys instead of xio