changing build script to handle versioning