updated build script for versioning