fix big projects search/replace

use spawn and stdin instead of command line