Correctly set Gaudi_VERSION when building as a subproject
In 8d119290 I introduced a cache variable meant to be used when Gaudi was built as a subproject, but I didn't realize that that bit of code was not reached in subproject builds.
This rectifies the problem.