Prune empty directories during deployment