Added support for replace source code with repackage rules