Ensured that logs directory is created.