replace exec with spawn

Change-Id: I597f2b10c0c36e909b3ff2de1ffac3dd72e4bec6