bugfix: use touch to figure out whether the stderr file is writable or
not. "test -w ..."  returns False when the file does not exist even
though the user could write it.