Add code to read and rename files according to regex in file content