- Check module's own agents directory first for custom modules
- Fall back to installer source for built-in modules
- Fixes custom module agent compilation issue in alpha versions
This change enables rebuildAgentFiles() to properly compile agents
from custom modules by first checking the module's own agents/
directory for .agent.yaml files. If found, it uses those files
directly. Otherwise, it falls back to the installer source directory
for built-in modules (core, bmm, bmb, etc.).
Tested with custom module 'po' (Prompt Optimizer) - agents compile
successfully and slash commands are generated correctly.