Although I didn't reproduce the bug, I changed delete-directory according to Eli's suggestion by installing the attached patch into master. Glenn, can you please try it in your environment?