Initialisation procedure (creates log directory)