Make sure our log directory is created before trying to write a file to it