Avoid editing destination file if it does not exist
Merge pull request #1711 from padrino/patch-inject_into_file

Avoid editing destination file if it does not exist