check if log and conf dir exists before