Fixed COGE-228 mkpath with verbose=1 corrupts the json object.