Fix log permission write on Windows