Added deletion of empty directory