Added delete method to Directory class (see bug 2776)

Probably linked bug 2776 is fixed. I could reproduce it only when a directory had been removed manually.
If I added, edited or removed files everything worked well (translated project stats was refreshed).