file.replace issue when show_changes is False. Fixes #14978
Merge pull request #15402 from terminalmage/bp-15372

Backport #15372 to 2014.7