files: add a script to generate an effective configuration file