fixed deamon cannot create dir bug