fixed bug for deleteEmptyDirectory attribute when using wildcard