Updated common build script to create pre releases and final versions on the build server