Call replace only for files.

issue #codio-4042
https://codio.myjetbrains.com/youtrack/issue/codio-4042
Please make a version bump in a separate commit, together with an update to the changelog.