nsbcompile2: Fix wildcard and compound variables