Adding version.sh and using versions to build packages and image