Make repair functions work for embedded/local mode of client
https://github.com/eXist-db/exist/issues/297