new libreoffice has --version

this should match if first line didn't have a version number i.e. error like: Error: Could not find or load main class .usr.lib.libreoffice or Failed to open display which shows if running headless.