change build script to take in version as a param