7zip Version Detection (Linux)

Summary
Detection of installed version of 7zip. The script logs in via ssh, searches for executable '7za' and queries the found executables via command line option 'invalidcmd'. The error message output of 7za is normal because 7za in fact offers no version command and thus an invalid command has to be passed to obtain the version number.
Detection
executable version check