Replace original files

Adds the ability to replace the original files. Useful when replacing strings in place.