Added the right gen.package.sh and corrected permissions