Fixed some errors in execl()/wait().