[config] respect homedir config value when enumerating modules

This should fix issue #336