You need to check for the presence of `unrar` like it is done for `tar` with lzma support above; otherwise, ugly errors will occur when unrar is missing.