Fixed quite a few failing regression tests; many of them were failing (on
Mac OSX) due to tmp filesystem fun.
While debugging some mod_sftp issues, I added some code useful for future
debugging; checking it in.