fix cmd_requires_root logic