Fix permission problem with logs folder