Make iwd error reporting more robust. #3605
Do not use stat() to check existence.
Instead, improve error propagation when chdir() fails.
The child_failure_op that is passed back from the child process
could be used to improve error reporting of other types of
failures too.  In this patch, I only dealt with chdir().