(maint) Fix conditional order for package install

This work ensures that we test the correct values to ensure we get the
master_package installed.