Fixes #6202,BZ1085494 - Fix legacy_search for PuppetModule