Updated createpackages.sh to handle Solaris correctly