Fix cmdmod.py daemon error introduced by 77087955

Fix error introduced by 77087955216876d97f6fc75f814897a3231a81fc