changed the way to modify vars in Makefile.config to use inreplace