Fix ROOT_DIR eval, and arguments in sudo_cmd.