fix big projects search/replace

use spawn and stdin instead of command line
resolves https://github.com/codio/client/issues/3587