Make .deb and .rpm mime type handling optional at build time
Only add support for them if the dpkg or rpm executables are present, respectively.
Differential Revision: https://phabricator.kde.org/D13123