fix argument order for dup2 and clear environment
error: cannot open /dev/stdin