Support running with no open file descriptors (as may happen to
"init" process on linux).
- Remove a check that writing to stderr succeeds.
- When opening a file (ex. for log_path option), dup the new fd out of
[0, 2] range to avoid confusing the program.