delete junk files
add log and tmp directory.