Prune empty directories.