Fixed the build package script.