Add log dir when it doesn't exist