fix a bug if package already has distribution folders