changing pkgsearch.py for work with new config option