fix a bug that we build an unnecessary folder when packaging