Support searching and replacing for references to previously hashed files.

Alternative solution to pull request #28