Add version tracking to build script