Call replace only for files.

issue #codio-4042
https://codio.myjetbrains.com/youtrack/issue/codio-4042
Sorry, I miss read the diff, thought that line was replaced by some reason..