Fix Emacs 23 compatibility

Up to Emacs 23.4, `delete-directory` takes two arguments only.