[scripts] fixed packaging scripts