Adds search and replace support for the phar library.