packages/listener: add a config file, fix config file handling