comp_and_install function to only install config file if different