building dependencies might fail
If you flags a set for a certain module, building this module as dependency might fail.
Example:
$ modulecmd bash avail openmpi/3.1.6 -m -a
openmpi/3.1.6_slurm stable
openmpi/3.1.6 unstable
Problem: In libpbuild.bash
the function pbuild::module_is_avail
does not check all returned modules.
Fix: Loop over all results.