Replace S-expressions in files to save variables