Make sure log directory exists