fixed show rule detail and discovering devices (handle empty search result)
Merge pull request #70 from t-mon/cmdmgr-fix-rules

fixe some cmdmgr issues