search and replace step for moving from one root directory to another