Fix packages build scripts