wiring.generateBlock: multiple search paths

Added support for multiple search paths in wiring.generateBlock().