more specific regex for config replacements
updated file replace