Ensure log directory is created