improve package build script