Eh, this is excessively clever. It should either be changed to a `forEach` or the paths of each component should be processed individually. Failing to remove an empty directory for one component should cause us to give up trying to delete empty directories for other components.