Direct commit in master: fix bug with a directory deletion

Signed-off-by: Slava Zanko <slavazanko@gmail.com>