more reliable method for libreoffice to detect or remove installed versions