Fixed build script do create valid packages.