Fix filename including full path in set_document_revision