Fixed removing of empty folders

Placeholder approoved