Made it so that failing tests fails build
Correctly get build version in build script