pkg_mgr_installed - Fix disablepackagehistory
pkg_mgr_installed - Fix disablepackagehistory

* Improve if/else/endif
NOYB/pfsense,BlackstarGroup/pfsense,BlackstarGroup/pfsense,jxmx/pfsense,NOYB/pfsense,ptorsten/pfsense,jxmx/pfsense,phil-davis/pfsense,dennypage/pfsense,NewEraCracker/pfsense,NewEraCracker/pfsense,BlackstarGroup/pfsense,ptorsten/pfsense,phil-davis/pfsense,NOYB/pfsense,ptorsten/pfsense,brunostein/pfsense,pfsense/pfsense,ch1c4um/pfsense,NewEraCracker/pfsense,brunostein/pfsense,ch1c4um/pfsense,phil-davis/pfsense,pfsense/pfsense,jxmx/pfsense,dennypage/pfsense,dennypage/pfsense,brunostein/pfsense,NewEraCracker/pfsense,dennypage/pfsense,BlackstarGroup/pfsense,phil-davis/pfsense,ch1c4um/pfsense,pfsense/pfsense,ch1c4um/pfsense,pfsense/pfsense