empty target directories deletion fix