Fix test failing for clearing commit log directory