Write version after successful build