fixe some cmdmgr issues

fixed "show rule detail"
handle empty discovery result