Add function to merge configuration files