Add -a param to the tee comand in order to append to the config file, and not recreate it