Fix startup not waiting for the log file to be created