[config] fix xdg get file and retFile.
[tools] fix some error message