fix logs folder check