[TASK] optimize package maker script