Remove log and tmp dirs