compile: Fix post-release for trees without version.go

Also add tests.