rpm only if rpmbuild is in PATH, and dpkg only if in PATH too