configure: Always create the VERSION file
Teach the configure script to create the VERSION file.
This will serve as the stable interface to allow the user to determine
the version number of a working tree.
Fixes #22322 (closed).
Edited by Ben Gamari