Small bug fix for empty log directories