The binlog and avro file directories should be checked before they are used and if they don't exist, they should be created.