Add prestart hook to create logs dir