update log writer to support new lines, and add output task to create
structure files tree.
Fix the path for tree command, now it dynamic so we can only change from
initConfigt.