copy two deepin_utils function into this project, remove deepin_utils dependence