add is_root_prefix() to cli.common module