Fix cmdmod.py daemon error introduced by 77087955
Merge pull request #3740 from basepi/fix_cmdmod_daemon_bug

Fix cmdmod.py daemon error introduced by 77087955