move logs link creation to after the parent dir is created