Minor update to work correctly when the logs folder is created