Dynamically create VERSION.txt during build

Creates a VERSION.txt file during the build which contains various version information. See https://github.com/eXist-db/exist/pull/370#issuecomment-59119559 for more information