Eliminate compiling warning.
spawn should call "exit" even if exec fails.
Add spwan function that can change directory and wait child.