remove debug-purposes statement.
Fix 'list-modules' when current env is with a lib, so that the output correctly list all modules inside a lib.