Make sure there are no lingering threads when we clean up.
Add dummy_etc directory in source tarball.
remake_outputs.pl was missing from the source tarball.
Merge pull request #1772 from jimis/master

3.6.x changes missing from master.