Support wildcards in lib dirs

Wildcards are supported in both lib_dirs in config files
as well via the -l command line option.