Add confdir option and installation of config.json