close stdin before calling execve