Fix release number generation for out-of-source builds. Append Debug as appropriate.