build: fix install_packages_disabled under RHEL7.