using regex to replace values of a certain variable all files in a folder